<div class="admin">
    <div class="tab panel dux-box admin-panel">
        <div class="panel-head"><strong>信息模板设置</strong></div>
        <div class="padding border-bottom">
            <a class="button button-small bg-green">信息模板</a>
            <a href="{:U('/Msgtpl/add')}" class="button button-small border-green">添加模板</a>
            <a href="{:U('/Config/email')}" class="button button-small border-green">邮件信息设置</a>
            <a href="{:U('/Config/mobile')}" class="button button-small border-green">手机短信设置</a>
        </div>
        <div class="fixed-empty"></div>
        <form method="post" id="myform" name="myform" action="{:U('saveConfig')}">
            <table class="table tb-type2">
                <thead>
                    <tr class="thead">
                        <th>编号</th>
                        <th>模板名称</th>
                        <th class="align-center">手机状态</th>
                        <th class="align-center">邮件状态</th>
                        <th class="align-center">操作</th>
                    </tr>
                </thead>
                <tbody>
                <foreach item='v' name='list'>
                    <tr class="hover" style="background: rgb(255, 255, 255);">
                        <td class="w24">{$v['id']}</td>
                        <td class="w25pre">{$v['title']}</td>
                        <td class="align-center">{$v['is_mobile']?'开启':'关闭'}</td>
                        <td class="align-center">{$v['is_email']?'开启':'关闭'}</td>
                        <td class="w60 align-center">
                            <a class="button bg-blue button-little" href="{:U('edit',array('id'=>$v['id']))}"><i class="icon-edit"></i>编辑</a>
                            <a class="button bg-red button-little" href="javascript:;" data="{$v['id']}" title="删除"><i class="icon-minus-circle"></i>删除</a>
                        </td>
                    </tr>
                </foreach>
                </tbody>
            </table>
        </form>
    </div>
</div>
<script type="text/javascript">
    $('#myform').layer({
        deleteUrl: "del"
    });
</script>
